                    <div id="sitemap_block">
                        <div id="block_head_blank" class="scroll_to">
                            <?php echo $block_title; ?>
                        </div>
                        
                        <div id="sitemap_block_body">
                            
                            <ul id="sitemap_root">
                                <li class="">
                                    <a href="<?php echo site_url(); ?>" title="<?php echo $this->lang->line('home'); ?>"><?php echo $this->lang->line('home'); ?></a>
                                </li>
                                <li class="">
                                    <a href="<?php echo site_url(); ?>about" title="<?php echo $this->lang->line('about'); ?>"><?php echo $this->lang->line('about'); ?></a>
                                </li>
                                <li class="">
                                    <a href="<?php echo site_url(); ?>agent" title="<?php echo $this->lang->line('agent'); ?>"><?php echo $this->lang->line('agent'); ?></a>
                                </li>
                                <li class="">
                                    <a href="<?php echo site_url(); ?>technology" title="<?php echo $this->lang->line('technology'); ?>"><?php echo $this->lang->line('technology'); ?></a>
                                </li>
                                <li class="">
                                    <a href="<?php echo site_url(); ?>register" title="<?php echo $this->lang->line('register'); ?>"><?php echo $this->lang->line('register'); ?></a>
                                </li>
                                <li class="">
                                    <a href="<?php echo site_url(); ?>gold" title="<?php echo $this->lang->line('gold'); ?>"><?php echo $this->lang->line('gold'); ?></a>
                                </li>
                                <li class="">
                                    <a href="<?php echo site_url(); ?>subscribe" title="<?php echo $this->lang->line('subscribe'); ?>"><?php echo $this->lang->line('subscribe'); ?></a>
                                </li>
                                <li class="">
                                    <a href="<?php echo site_url(); ?>banner" title="<?php echo $this->lang->line('banner'); ?>"><?php echo $this->lang->line('banner'); ?></a>
                                </li>
                                <li class="">
                                    <a href="<?php echo site_url(); ?>contact" title="<?php echo $this->lang->line('contact'); ?>"><?php echo $this->lang->line('contact'); ?></a>
                                </li>
                                <li class="">
                                    <a href="<?php echo site_url(); ?>directory" title="<?php echo $this->lang->line('directory'); ?>"><?php echo $this->lang->line('directory'); ?></a>
                                    <ul>
                                    <?php
                                        $i = 1;
                                        $site_url = base_url();
                                        foreach($catlist as $v){
                                            $class = '';
                                            if(($i++)%2){
                                                $class = 'index_s_block_body_list_first';
                                            }
                                            
                                            echo <<<ddd
                                                <li>
                                                    <a href="{$site_url}category/{$v['id']}-{$v['name_th']}" title="{$v['name_th']}">{$v['name_th']}</a>
                                                    <ul>
ddd;
                                            
                                            foreach($v['sub'] as $vv){
                                                echo "<li><a href=\"{$site_url}category/{$v['id']}-{$v['name_th']}/{$vv->id}-{$vv->name_th}\" title=\"{$vv->name_th}\">" , $vv->name_th , '</a></li>';
                                            }
                                            
                                            echo <<<ddd
                                                    </ul>
                                                </li>
ddd;
                                        }
                                    ?>
                                    </ul>
                                </li>
                            </ul>
                            
                        </div>
                        
                        <div id="sitemap_block_footer">
                            
                        </div>
                    </div>